#ifndef TCPADT_H_
#define TCPADT_H_

/*--------------------------------------------------------------------------*/

typedef struct tcpCDT * tcpADT;

/*--------------------------------------------------------------------------*/

int connTcp(const char *host, const char *port, tcpADT *tcp);

int bindTcp(const char *port, tcpADT *tcp);

int acceptTcp(tcpADT tcp, tcpADT *new);

int rcvTcp(tcpADT tcp, void *buf, int count, int timeO);

int sndTcp(tcpADT tcp, void *buf, int count);

int closeTcp(tcpADT tcp);

/*--------------------------------------------------------------------------*/

#endif /* TCPADT_H_ */
